<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="stylesheet" href="../../layui/css/layui.css">

    <script src="../../layui/layui.js"></script>
    <script src="../../layui/js/jquery-3.1.1.min.js"></script>
    <script src="../../layui/js/global.js"></script>


    <style type="text/css">
        .chaxun{
            padding-bottom: 20px;
        }
        .layui-table-cell{
            text-align:center;
            height: auto;
            white-space: normal;

        }
        .layui-table img{
            max-width:500px}

    </style>
    <script src="../../layui/js/sys/shopfind.js"></script>
    <script src="../../layui/js/sys/game.js"></script>
</head>
<body>
<div class="layui-bg-gray" style="margin-top: 15px; padding:15px;">
    <form id="searchform" class="layui-form" lay-filter="searchform">
        <div class="layui-form-item">

            <div class="layui-inline">
                <label class="layui-form-label">游戏名</label>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="gamename" class="layui-input" placeholder="游戏名称">
                </div>
            </div>


            <div class="layui-inline">
                <label class="layui-form-label">游戏号</label>
                <div class="layui-input-inline" style="width: 100px;">
                    <input type="text" name="gameid" placeholder="游戏号" class="layui-input" >
                </div>
            </div>
<!--            <div class="layui-inline">-->
<!--                <label class="layui-form-label">游戏价格</label>-->
<!--                <div class="layui-input-inline" style="width: 100px;">-->
<!--                    <input type="text" name="price" placeholder="游戏价格" class="layui-input" >-->
<!--                </div>-->
<!--            </div>-->



            <div class="layui-inline">
                <div class="layui-input-inline">
                    <button type="button" class="layui-btn layui-btn-warm">搜索</button>
                    <button type="reset" class="layui-btn layui-btn-normal">取消</button>
                </div>
            </div>

        </div>
    </form>
    <table id="gameTable" class="layui-table-cell" lay-filter="gameTable"></table>
</div>




<!--<div id="addDiv" style="display: none">-->
<!--    <div style="text-align: center">-->
<!--        <form id="findForm" class="layui-form">-->
<!--            <div class="layui-form-item">-->
<!--                <div class="layui-input-block" >-->
<!--                    <input type="text" name="orderid" required  lay-verify="required" placeholder="请输入订单号" autocomplete="off" class="layui-input" style="width:200px">-->
<!--                        <button class="layui-btn layui-btn-sm" lay-event="find">单号查询</button>-->
<!--                </div>-->
<!--            </div>-->
<!--        </form>-->
<!--    </div>-->
<!--</div>-->

<script type="text/html" id="picture">
        <img src="http://localhost:8090/sys/games/{{d.photo}}" style="max-width:150px"/>
</script>
<script type="text/html" id="rowBar">
    <button class="layui-btn layui-btn-warm layui-btn-xs" lay-event="addcart" style="width:100px;" >添加到购物车</button>

</script>

<script>
    var typeAll ;
    var laydate;
    var  table;
    var layer
    layui.use(['layer','table','form' ,'laydate'], function(){
        var layer = layui.layer;
        var table= layui.table ;
        var form = layui.form ;
        laydate = layui.laydate;
        initTable(table,form) ;
        initTypeSelect(form) ;
        searchBtnInit(table) ;

    });
</script>
<!--<script>-->
<!--  -->
<!--    layui.use(['layer','table','form' ,'laydate'], function(){-->
<!--        -->
<!--     var table=layui.table-->
<!--        var form = layui.form ;-->
<!--        laydate = layui.laydate;-->
<!--        initTable(table , form) ;-->
<!--        initTypeSelect(form) ;-->

<!--        //常规用法-->
<!--     -->

<!--        searchBtnInit(table) ;-->
<!--    });-->
<!--</script>-->
</body>

</html>